/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.datawander.Presenter;

import com.googlecode.datawander.View.MenuControlerInt;
import com.googlecode.datawander.i18n.I18n;
import java.awt.Component;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import org.apache.log4j.Logger;

/**
 *
 * @author Marcin Stachniuk
 */
public class MenuControlerImpl implements MenuControlerInt {

    private static final Logger logger = Logger.getLogger(MenuControlerInt.class);

    public void exitApplication() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void showPreferences(Component component) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void showHelp(Component component) {
        JOptionPane.showMessageDialog(component, I18n.getString("helpdescription"),
                I18n.getString("helpmenu"), JOptionPane.INFORMATION_MESSAGE);
    }

    public void showAbout(Component component) {
        JOptionPane.showMessageDialog(component, I18n.getString("aboutdescription"),
                I18n.getString("aboutprogram"), JOptionPane.INFORMATION_MESSAGE);
    }

}
